/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2023 —09 —02
 * Time: 12:14
 */
public class test_9_2 {
/*

    public static void main1(String[] args) {


        int a =10;
        int b;
        b=19;
        System.out.println(b);

        int a = 10;
        int b = 2147483647 + a;//先2147483647+1=-2147483648  再＋9=-2147483639
        System.out.println(b);

        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);


        }



/*
    public static void main2(String[] args) {
        long a = 10L;
        System.out.println(a);
        System.out.println(Integer.MIN_VALUE);
        System.out.println(Long.MAX_VALUE);
    }

*/
/*

    public static void main3(String[] args) {
        double a = 1.0;
        double b = 2.0;
        System.out.println(a/b);

        double num1 = 1.01;
        System.out.println(num1*num1);*//*

        float num1 = 1.01f;
        System.out.println(num1);
    }



/*

    public static void main4(String[] args) {
        char c1 = 'A';
        char c2 = '1';
        System.out.println(c1);
        System.out.println(c2);

        char c3 = '帅';
        System.out.println(c3);


    }
*/
/*

    public static void main(String[] args) {
        boolean b = true;
        System.out.println(b);
        boolean a = false;
        System.out.println(a);
    }
*/

/*
    public static void main(String[] args) {

    boolean value = true;
    System.out.println(value + 1);

}*/
/*

    public static void main(String[] args) {
*/
/*      int a = 10;
        long b = 100l;
        b=a;
        a=b;
        System.out.println(b);*//*


     */
/*        float f = 3.14F;
        double d= 5.12;
        d=f;//整形提升
        f=d;
        System.out.println(d);
        System.out.println(f);//报错
        *//*


     */
/*

        byte b1 = 100;
        byte b2 =（byte）257;//byte的范围是-128到127  报错
        System.out.println(b1);
        System.out.println(b2);
}

}*/

  /*  public static void main(String[] args) {
        byte a1 = 12;
        byte a2 = 31;
        byte a3 = a1 + a2;
        System.out.println(a3);
    }
    */

    /**
     * 报错原因：a1+a2在相加的时候会先把byte类型转换为int类型，在赋值给a3，高转低会报错数据丢失
     *//*

    }*/


/*

    public static void main(String[] args) {

        String s1 = "hello";
        String s2 = "world";
        System.out.println(s1 + s2);//字符串相加


    }


*/


}
